<?php
/**
 * This is User fixture file. 
 *
 * @copyright     Copyright 2008-2010, LilCake.net
 * @link          http://lilcake.net LilCake.net
 * @package       lil
 * @subpackage    lil.tests.fixtures
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
/**
 * UserFixture class
 *
 * @uses          CakeTestFixture
 * @package       lil
 * @subpackage    lil.tests.fixtures
 */
class UserFixture extends CakeTestFixture {
/**
 * name property
 *
 * @var string
 * @access public
 */
	var $name = 'User';
/**
 * fields property
 *
 * @var array
 * @access public
 */
	var $fields = array(
		'id' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 36, 'key' => 'primary', 'collate' => 'utf8_unicode_ci', 'comment' => '', 'charset' => 'utf8'),
		'admin' => array('type'=>'boolean', 'null' => false, 'default' => 0),
		'name' => array('type'=>'string', 'null' => true, 'default' => NULL, 'length' => 100),
		'email' => array('type'=>'string', 'null' => true, 'default' => NULL, 'length' => 255),
		'username' => array('type'=>'string', 'null' => true, 'default' => NULL, 'length' => 50),
		'passwd' => array('type'=>'string', 'null' => true, 'default' => NULL, 'length' => 50),
		'created' => array('type'=>'datetime', 'null' => true, 'default' => NULL),
		'modified' => array('type'=>'datetime', 'null' => true, 'default' => NULL),
		'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1))
	);
/**
 * records property
 *
 * @var array
 * @access public
 */
	var $records = array(
		array(
			'id'  => '4eab9313-cf04-4f4a-8567-0f18025da8b9',
			'admin' => true,
			'name'  => 'John Doe',
			'email' => 'john@doe.com',
			'username' => 'johndoe',
			'passwd' => 'fd1b755a266f9473582780a9bfa8312fcc1ee920',
			'created'  => '2008-01-23 12:34:56',
			'modified'  => '2008-03-21 12:34:56'
		),
		array(
			'id'  => '4eab931b-c0a8-4dfd-a4f3-1310025da8b9',
			'admin' => false,
			'name'  => 'Jane Dean',
			'email' => 'jane.dean@home.com',
			'username' => 'janedean',
			'passwd' => '',
			'created'  => '2008-04-05 11:22:33',
			'modified'  => '2008-11-22 11:22:33'
		),
	);
/**
 * UserFixture constructor
 *
 * @access public
 */
	function __construct() {
		App::uses('Security', 'Utility');
		$this->records[0]['passwd'] = Security::hash('admin', null, true);
		parent::__construct();
	}
}